﻿<%@ Page MaintainScrollPositionOnPostback="true" Title="" Language="C#" MasterPageFile="~/MasterPlus.master" AutoEventWireup="true" CodeBehind="wbfrm_Cambio_Productos.aspx.cs" Inherits="FrontEndPlus.Módulos.Catálogos_y_Mantenimientos.wbfrm_Cambio_Productos" %>
<%@ Register Src="~/Módulos/Catálogos y Mantenimientos/MenuVertical.ascx" TagName="MenuVertical" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">   
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" type="text/css" href="App_Themes/CSS/Smoke.css"/>
    <link type="text/css" rel="stylesheet" href="App_Themes/CSS/formEspera.css" />
    <script type="text/javascript" src="JS/Smoke.min.js"></script>
    <script type="text/javascript" src="JS/Smoke.js"></script>
    <style type="text/css">
        .auto-style2 {
            width: 307px;
        }

        .auto-style4 {
            height: 33px;
        }
    </style> 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">  
    <div>
        <uc1:MenuVertical ID="MenuVertical1" runat="server"/>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <asp:Panel ID="Panel3" runat="server">
         <table align="center" style="background-color: #E8EBF7; border-radius:10px; filter:alpha(opacity=50);">
            <tr>
                <td></td>
                <td align="center"></td>
                <td align="center" class="auto-style2" colspan="8">
                    <h1><strong>Cambio de Producto</strong></h1>
                </td>
            </tr>
            </table>
        <table align="center" style="background-color: #E8EBF7; border-radius:10px; filter:alpha(opacity=50);">
             <tr>
                <td class="auto-style4"></td>
                <td align="right" class="auto-style4"></td>
                <td align="center" class="auto-style2">
                    <asp:ToolkitScriptManager ID="tsm_ScriptManager" runat="server"></asp:ToolkitScriptManager>
                </td>
            </tr>
            <tr>
                <td class="auto-style4"></td>
                <td align="center" class="auto-style4"></td>
                <td align="left" class="auto-style2">
                    <h2 style="color: darkblue">Agregar/Modificar</h2>
                </td>
            </tr>
            <tr>
                <td class="auto-style4"></td>
                <td align="center" class="auto-style4"></td>
                <td align="left" class="auto-style2"></td>
            </tr>
            <tr>
                <td class="auto-style4">
                    <br />
                    <br />                  
                </td>
                <td align="right" class="auto-style4">Id: </td>
                <td class="auto-style2">
                    <asp:TextBox ID="txt_Id" runat="server" TabIndex="4" MaxLength="10" ReadOnly="True" Width="59px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="auto-style4">
                    <br />
                    <br />                   
                </td>
                <td align="right" class="auto-style4">Código(*):</td>
                <td class="auto-style2">
                    <asp:TextBox ID="txt_CodigoP" runat="server" TabIndex="5" MaxLength="20" Width="79px"></asp:TextBox><br />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ErrorMessage="Digitar Código"
                         ForeColor="Maroon" ControlToValidate="txt_CodigoP" EnableClientScript="False" CssClass="msjerror"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="auto-style4">
                    <br />
                    <br />
                </td>
                <td align="right" class="auto-style4">Nombre(*):</td>
                <td class="auto-style2">
                    <asp:TextBox ID="txt_NombreP" runat="server" TabIndex="6" MaxLength="50" Width="199px"></asp:TextBox><br />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Digitar nombre de producto" 
                        ForeColor="Maroon" ControlToValidate="txt_NombreP" EnableClientScript="False" CssClass="msjerror"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="auto-style4">
                    <br />
                    <br />                   
                </td>
                <td align="right" class="auto-style4">Descripción:</td>
                <td class="auto-style2">
                    <asp:TextBox ID="txt_DescP" runat="server" TabIndex="6" MaxLength="50" Width="270px"></asp:TextBox><br />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Escribir Descripción de Producto"
                         ForeColor="Maroon" ControlToValidate="txt_DescP" EnableClientScript="False" CssClass="msjerror"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="auto-style4">
                    <br />
                    <br />                  
                </td>
                <td align="right" class="auto-style4">Proveedor:</td>
                <td class="auto-style2">
                    <asp:DropDownList ID="ddl_Proveedor" 
                        runat="server" CssClass="DropDownListcompleto" Width="163px" CausesValidation="True" 
                        Font-Bold="True" Font-Italic="False" Font-Overline="False"
                         Font-Size="Medium" AppendDataBoundItems="false">                       
                    </asp:DropDownList><br />
                    <asp:RangeValidator ID="RangeValidator1" runat="server" 
                        ErrorMessage="Seleccionar Proveedor" MaximumValue="2" 
                        MinimumValue="1" ControlToValidate="ddl_Proveedor" 
                        EnableClientScript="False" ForeColor="Maroon"
                         CssClass="msjerror"></asp:RangeValidator>
                </td>
            </tr>
            <tr>
                <td></td>
                <td align="center"></td>

                <td align="left" class="auto-style2">
                    <h2 style="color: darkblue">Datos de Valor</h2>
                </td>
            </tr>
            <tr>
                <td></td>
                <td align="center"></td>
                <td align="left" class="auto-style2"></td>
            </tr>
            <tr>
                <td class="auto-style4">
                    <br />
                    <br />                  
                </td>
                <td align="right" class="auto-style4">Cantidad Actual:</td>
                <td class="auto-style2">
                    <asp:TextBox ID="txt_CantidadActual" runat="server" TabIndex="6" MaxLength="18" Width="82px"></asp:TextBox><br />
                    <asp:MaskedEditExtender ID="MaskedEditExtender2" runat="server"
                                                    TargetControlID="txt_CantidadActual"
                                                    Mask="9999.99"
                                                    MessageValidatorTip="true"
                                                    OnFocusCssClass="MaskedEditFocus"
                                                    OnInvalidCssClass="MaskedEditError"
                                                    MaskType="Number"
                                                    InputDirection="RightToLeft"
                                                    AcceptNegative="None"
                                                    ClearMaskOnLostFocus="True"
                                                    Filtered="."
                                                    ErrorTooltipEnabled="True" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txt_CantidadActual" CssClass="msjerror" EnableClientScript="False" ErrorMessage="Digitar Cantidad" ForeColor="Maroon"></asp:RequiredFieldValidator>                    
                </td>
            </tr>
            <tr>
                <td class="auto-style4">
                    <br />
                    <br />                  
                </td>
                <td align="right" class="auto-style4">Precio de Compra:</td>
                <td class="auto-style2">
                    <asp:TextBox ID="txt_PrecioCompra" runat="server" TabIndex="6" MaxLength="18" Width="97px"></asp:TextBox><br />
                     <asp:MaskedEditExtender ID="MaskedEditExtender3" runat="server"
                                                    TargetControlID="txt_PrecioCompra"
                                                    Mask="9999999.99"
                                                    MessageValidatorTip="true"
                                                    OnFocusCssClass="MaskedEditFocus"
                                                    OnInvalidCssClass="MaskedEditError"
                                                    MaskType="Number"
                                                    InputDirection="RightToLeft"
                                                    AcceptNegative="None"
                                                    ClearMaskOnLostFocus="True"
                                                    Filtered="."
                                                    ErrorTooltipEnabled="True" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" ControlToValidate="txt_PrecioCompra" CssClass="msjerror" EnableClientScript="False" ErrorMessage="Digitar Precio de Compra" ForeColor="Maroon"></asp:RequiredFieldValidator>
                </td>
            </tr>
             <tr>
                <td class="auto-style4">
                    <br />
                    <br />                   
                </td>
                <td align="right" class="auto-style4">Precio de Venta:</td>
                <td class="auto-style2">
                    <asp:TextBox ID="txt_PrecioVenta" runat="server" TabIndex="6" MaxLength="18" Width="95px"></asp:TextBox><br />
                    <asp:MaskedEditExtender ID="MaskedEditExtender5" runat="server"
                                                    TargetControlID="txt_PrecioVenta"
                                                    Mask="9999999.99"
                                                    MessageValidatorTip="true"
                                                    OnFocusCssClass="MaskedEditFocus"
                                                    OnInvalidCssClass="MaskedEditError"
                                                    MaskType="Number"
                                                    InputDirection="RightToLeft"
                                                    AcceptNegative="None"
                                                    ClearMaskOnLostFocus="True"
                                                    Filtered="."
                                                    ErrorTooltipEnabled="True" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ControlToValidate="txt_PrecioVenta" CssClass="msjerror" EnableClientScript="False" ErrorMessage="Digitar Precio de Venta" ForeColor="Maroon"></asp:RequiredFieldValidator>
                </td>
            </tr>
             <tr>
                <td class="auto-style4">
                    <br />
                    <br />                  
                </td>
                <td align="right" class="auto-style4">Impuesto:</td>
                <td class="auto-style2">
                    <asp:TextBox ID="txt_Impuesto" runat="server" TabIndex="6" MaxLength="8" Width="58px"></asp:TextBox><br />
                    <asp:MaskedEditExtender ID="MaskedEditExtender6" runat="server"
                                                    TargetControlID="txt_Impuesto"
                                                    Mask="99.99"
                                                    MessageValidatorTip="true"
                                                    OnFocusCssClass="MaskedEditFocus"
                                                    OnInvalidCssClass="MaskedEditError"
                                                    MaskType="Number"
                                                    InputDirection="RightToLeft"
                                                    AcceptNegative="None"
                                                    ClearMaskOnLostFocus="True"
                                                    Filtered="."
                                                    ErrorTooltipEnabled="True" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" ControlToValidate="txt_Impuesto" CssClass="msjerror" EnableClientScript="False" ErrorMessage="Digitar Impuesto" ForeColor="Maroon"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="auto-style4">
                    <br />
                    <br />                   
                </td>
                <td align="right" class="auto-style4">Decimales:</td>
                <td class="auto-style2">
                    <asp:CheckBox ID="chk_DecActivos" runat="server" Text="Activos" CssClass="letrapantallas" OnCheckedChanged="chk_DecActivos_CheckedChanged" AutoPostBack="True" />
                    <asp:CheckBox ID="chk_DecInactivos" runat="server" Text="Inactivos" CssClass="letrapantallas" OnCheckedChanged="chk_DecInactivos_CheckedChanged" AutoPostBack="True" /><br />
                    <asp:Label ID="lbl_ErrorCheck" runat="server" ForeColor="Maroon" CssClass="msjerror"></asp:Label>
                </td>
            </tr>
             <tr>
                <td class="auto-style4">
                    <br />
                    <br />                  
                </td>
                <td align="right" class="auto-style4">Ganancia:</td>
                <td class="auto-style2">
                    <asp:TextBox ID="txt_Ganancia" runat="server" TabIndex="6" MaxLength="18" Width="91px"></asp:TextBox><br />
                    <asp:MaskedEditExtender ID="MaskedEditExtender7" runat="server"
                                                    TargetControlID="txt_Ganancia"
                                                    Mask="9999999.99"
                                                    MessageValidatorTip="true"
                                                    OnFocusCssClass="MaskedEditFocus"
                                                    OnInvalidCssClass="MaskedEditError"
                                                    MaskType="Number"
                                                    InputDirection="RightToLeft"
                                                    AcceptNegative="None"
                                                    ClearMaskOnLostFocus="True"
                                                    Filtered="."
                                                    ErrorTooltipEnabled="True" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server" ControlToValidate="txt_Ganancia" CssClass="msjerror" EnableClientScript="False" ErrorMessage="Digitar Ganancia" ForeColor="Maroon"></asp:RequiredFieldValidator>
                </td>
            </tr>
             <tr>
                <td class="auto-style4">
                    <br />
                    <br />                   
                </td>
                <td align="right" class="auto-style4">Porcentaje de Utilidad:</td>
                <td class="auto-style2">
                    <asp:TextBox ID="txt_Util" runat="server" TabIndex="6" MaxLength="18" Width="63px"></asp:TextBox><br />
                     <asp:MaskedEditExtender ID="MaskedEditExtender8" runat="server"
                                                    TargetControlID="txt_Util"
                                                    Mask="99.99"
                                                    MessageValidatorTip="true"
                                                    OnFocusCssClass="MaskedEditFocus"
                                                    OnInvalidCssClass="MaskedEditError"
                                                    MaskType="Number"
                                                    InputDirection="RightToLeft"
                                                    AcceptNegative="None"
                                                    ClearMaskOnLostFocus="True"
                                                    Filtered="."
                                                    ErrorTooltipEnabled="True" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server" ControlToValidate="txt_CantidadActual" CssClass="msjerror" EnableClientScript="False" ErrorMessage="Digitar Cantidad" ForeColor="Maroon"></asp:RequiredFieldValidator>
                </td>
            </tr>
             <tr>
                <td class="auto-style4">
                    <br />
                    <br />                   
                </td>
                <td align="right" class="auto-style4">Mínimo:</td>
                <td class="auto-style2">
                    <asp:TextBox ID="txt_Minimo" runat="server" TabIndex="6" MaxLength="9" Width="62px"></asp:TextBox><br />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ErrorMessage="Digitar Mínimo" 
                        ForeColor="Maroon" ControlToValidate="txt_Minimo" EnableClientScript="False" CssClass="msjerror"></asp:RequiredFieldValidator>
                </td>
            </tr>
             <tr>
                <td class="auto-style4">
                    <br />
                    <br />                  
                </td>
                <td align="right" class="auto-style4">Máximo:</td>
                <td class="auto-style2">
                    <asp:TextBox ID="txt_Maximo" runat="server" TabIndex="6" MaxLength="9" Width="55px"></asp:TextBox><br />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ErrorMessage="Digitar Máximo" 
                        ForeColor="Maroon" ControlToValidate="txt_Maximo" EnableClientScript="False" CssClass="msjerror"></asp:RequiredFieldValidator>
                </td>
            </tr>
             <tr>
                <td class="auto-style4">
                    <br />
                    <br />                   
                </td>
                <td align="right" class="auto-style4">Sede:</td>
                <td class="auto-style2">
                    <asp:DropDownList ID="ddl_Gim" 
                        runat="server" CssClass="DropDownListcompleto" Width="163px" CausesValidation="True" 
                        Font-Bold="True" Font-Italic="False" Font-Overline="False"
                         Font-Size="Medium" AppendDataBoundItems="false">                       
                    </asp:DropDownList><br />
                    <asp:RangeValidator ID="RangeValidator5" runat="server" 
                        ErrorMessage="Seleccionar Sede" MaximumValue="2" 
                        MinimumValue="1" ControlToValidate="ddl_Gim" 
                        EnableClientScript="False" ForeColor="Maroon"
                         CssClass="msjerror"></asp:RangeValidator>
                </td>
            </tr>
            <tr>
                <td class="auto-style4">
                    <br />
                    <br />                   
                </td>
                <td align="right" class="auto-style4">Tipo de Producto:</td>
                <td class="auto-style2">
                    <asp:DropDownList ID="ddl_TipoP" 
                        runat="server" CssClass="DropDownListcompleto" Width="163px" CausesValidation="True" 
                        Font-Bold="True" Font-Italic="False" Font-Overline="False"
                         Font-Size="Medium" AppendDataBoundItems="false">                       
                    </asp:DropDownList><br />
                    <asp:RangeValidator ID="RangeValidator6" runat="server" 
                        ErrorMessage="Seleccionar Tipo de Producto" MaximumValue="2" 
                        MinimumValue="1" ControlToValidate="ddl_TipoP" 
                        EnableClientScript="False" ForeColor="Maroon"
                         CssClass="msjerror"></asp:RangeValidator>
                </td>
            </tr>
             <tr>
                <td class="auto-style4">
                    <br />
                    <br />                  
                </td>
                <td align="right" class="auto-style4">Estado:</td>
                <td class="auto-style2">
                    <asp:CheckBox ID="chk_Activo" runat="server" Text="Activos" CssClass="letrapantallas" OnCheckedChanged="chk_Activo_CheckedChanged" AutoPostBack="True" />
                    <asp:CheckBox ID="chk_Inactivo" runat="server" Text="Inactivos" CssClass="letrapantallas" OnCheckedChanged="chk_Inactivo_CheckedChanged" AutoPostBack="True" /><br />
                    <asp:Label ID="lbl_MsgError" runat="server" ForeColor="Maroon" CssClass="msjerror"></asp:Label>
                </td>
            </tr>           
            <tr>
                <td class="auto-style4"></td>
                <td align="right" class="auto-style4"></td>
                <td class="auto-style2">
                    <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Módulos/Catálogos y Mantenimientos/Imagen/accept.png" OnClick="ImageButton1_Click"/>
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>